//
// Created on 4/3/2024.
//
// Node APIs are not fully supported. To solve the compilation error of the interface cannot be found,
// please include "napi/native_api.h".

#include "MaskedComponentInstance.h"
#include <glog/logging.h>

namespace rnoh {
    MaskedComponentInstance::MaskedComponentInstance(Context context, facebook::react::Tag tag)
        : ComponentInstance(std::move(context), tag) {}

    void MaskedComponentInstance::insertChild(ComponentInstance::Shared childComponentInstance,
                                                      std::size_t index) {
        m_stackNode.insertChild(childComponentInstance->getLocalRootArkUINode(), index);
    }

    MaskedViewStackNode &MaskedComponentInstance::getLocalRootArkUINode() { return m_stackNode; }
} // namespace rnoh